
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    
    <body>
      
        <label value = "<?php // embedding PHP code within a label in order to view deadline  
        $conn = mysql_connect('localhost', 'root', '') or die(mysql_error());// starting a connection 
                 mysql_select_db('mydb') or die(mysql_error());

                 $confid = $_GET['id'];//getting confrence id 
                 //getting the deadline of the submission
                 $deadline = mysql_query("
                     SELECT `subm_deadline`
                     FROM `confrence c`
                     Where  `c.confrence_id= $_confid`      
                 ");
                //putting the deadline in a variable 
                 $row=  mysql_fetch_assoc($deadline);
                 $submdeadline=$row['subm_deadline'];
                     ;
                     mysql_closeconn();//closing the connection
                     // printing the deadline
                 echo "the deadline for submitting paper is:" +$submdeadline;
                 ?>" > </label>
    </body>
</html>
